import { defineStore } from 'pinia'

export const mainStore = defineStore('main', () => {
  const scrollTop= ref(0);
  const upScrollTop = (num) => {
    scrollTop.value = num
  }
  return { scrollTop,upScrollTop };
});


//菜单状态
export const menuStore = defineStore('menu', () => {
  const showMenu = ref(true);
  return { showMenu };
});